/************************************************
 *** Datei: main.cpp
 ***
 *** Erstellt am: 30.05.2012
 ***       Autor: Max Stark <Max.Stark88@googlemail.com>
 ***	 Version: 1.0
 ***
 *** Beschreibung:
 *** <hier Beschreibung einfuegen>
 ************************************************/

#include <QtGui>
#include <QApplication>

#include "DroneSwarmGUI.h"
#include <logic/DroneSwarmController.h>
#include <ARDroneV1.h>

int main(int argc, char *argv[]) {
    QApplication a(argc, argv);

    ARDroneV1* drone = new ARDroneV1();
    DroneSwarmController* dsController = new DroneSwarmController(drone);
    DroneSwarmGUI w(dsController->getUIController());

    w.show();
    //w.showMaximized();
    dsController->run();
    int retCode = a.exec();
    dsController->stop();

    delete dsController;
    delete drone;

    return retCode;
}


/*
bei CXXFLAGS:
 -D_WIN32_WINNT=0x0501

-I"C:\Boost\include\boost-1_49" -I"../DroneSwarm/src" -I"../ParrotARDroneV1/src"
-L"debug" -llibDroneSwarm -llibParrotARDroneV1 -L"C:\Boost\lib" -llibboost_system-mgw46-d-1_49 -lws2_32

	c:\Qt\4.8.1\bin\uic.exe src\forms\DroneSwarmGUI.ui -o src\forms\ui_DroneSwarmGUI.h
 */
